<?php

namespace App\Kuafu\Order\Enum;

class CodePaymentEnum
{

    // 给收银机的支付方式列表
    public const ORDER_PAYMENT_LIST = [
        self::ORDER_PAYMENT_TYPE_MEITUAN,
        self::ORDER_PAYMENT_TYPE_DOUYIN,
        self::ORDER_PAYMENT_TYPE_COUPON_XHS,
        self::ORDER_PAYMENT_TYPE_CASH,
        self::ORDER_PAYMENT_TYPE_SCAN,
        self::ORDER_PAYMENT_TYPE_TRY_TACK,
        self::ORDER_PAYMENT_TYPE_COUPON,
        self::ORDER_PAYMENT_TYPE_CUSTOM,
        self::ORDER_PAYMENT_TYPE_COUPON_CODE,
    ];

    // 订单来源 1 美团 2 现金 3 扫码 4 试吃 5 优惠券
    public const ORDER_PAYMENT_TYPE_MEITUAN            = 1;
    public const ORDER_PAYMENT_TYPE_CASH               = 2;
    public const ORDER_PAYMENT_TYPE_SCAN               = 3;
    public const ORDER_PAYMENT_TYPE_TRY_TACK           = 4;
    public const ORDER_PAYMENT_TYPE_COUPON             = 5;
    public const ORDER_PAYMENT_TYPE_CUSTOM             = 6;
    public const ORDER_PAYMENT_TYPE_DOUYIN             = 7;
    public const ORDER_PAYMENT_TYPE_COUPON_CODE        = 8;
    public const ORDER_PAYMENT_TYPE_COUPON_XHS         = 9;

    public const ORDER_PAYMENT_NAME = [
        self::ORDER_PAYMENT_TYPE_MEITUAN            => '美团券码核销',
        self::ORDER_PAYMENT_TYPE_CASH               => '现金',
        self::ORDER_PAYMENT_TYPE_SCAN               => '扫码',
        self::ORDER_PAYMENT_TYPE_TRY_TACK           => '试吃',
        self::ORDER_PAYMENT_TYPE_COUPON             => '{$couponName}',
        self::ORDER_PAYMENT_TYPE_CUSTOM             => '{$customPayment}',
        self::ORDER_PAYMENT_TYPE_DOUYIN             => '抖音券码核销',
        self::ORDER_PAYMENT_TYPE_COUPON_CODE        => '夸父券码核销',
        self::ORDER_PAYMENT_TYPE_COUPON_XHS         => '小红书券码核销',
    ];


    public const SUFFIX_CACHE_T = '?t=20230824';

    public const ORDER_PAYMENT_IMAGE = [
        self::ORDER_PAYMENT_TYPE_MEITUAN     => [
            'enable'  => '/pos/meituan_1.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
        self::ORDER_PAYMENT_TYPE_CASH        => [
            'enable'  => '/pos/xianjin_1.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
        self::ORDER_PAYMENT_TYPE_SCAN        => [
            'enable'  => '/pos/saoma_1.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
        self::ORDER_PAYMENT_TYPE_TRY_TACK    => [
            'enable'  => '/pos/shichi_1.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
        self::ORDER_PAYMENT_TYPE_COUPON      => [
            'enable'  => '/pos/youhuiquan_1.png' . self::SUFFIX_CACHE_T,
            'disable' => '/pos/youhuiquan_1_0.png' . self::SUFFIX_CACHE_T,
        ],
        self::ORDER_PAYMENT_TYPE_CUSTOM      => [
            'enable'  => '/pos/zidingyi.png' . self::SUFFIX_CACHE_T,
            'disable' => '/pos/zidingyi_1_0.png' . self::SUFFIX_CACHE_T,
        ],
        self::ORDER_PAYMENT_TYPE_DOUYIN      => [
            'enable'  => '/pos/douyin_1.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
        self::ORDER_PAYMENT_TYPE_COUPON_CODE => [
            'enable'  => '/pos/quanmahx.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
        self::ORDER_PAYMENT_TYPE_COUPON_XHS  => [
            'enable'  => '/pos/xiaohongshu_1.png' . self::SUFFIX_CACHE_T,
            'disable' => ''
        ],
    ];

}
